package com.ems.utils;

import java.util.List;

public class MyUtils {

    public static boolean equalsArrayListInteger(List<Integer> listOne, List<Integer> listTwo) {
        if (listOne == null || listTwo == null) {
            return false;
        }

        int length = listOne.size();
        int length2 = listTwo.size();
        if (length != length2) return false;

        int count = 0;
        for (Integer a : listOne) {
            if (listTwo.contains(a)) {
                count += 1;
            }
        }
        if (count == length) {
            return true;
        }
        return false;
    }
}
